include Makefile.rules

all:
	$(CC) src/*.c $(CFLAGS) -o $(NAME)

clean:
	find . -name "*#*"   | xargs rm -rf
	find . -name "*.so"  | xargs rm -rf
	find . -name "*core" | xargs rm -rf
	find . -name "*.log" | xargs rm -rf
	find . -name "*~"    | xargs rm -rf

distclean: clean
	find . -name "*.o"   | xargs rm -rf
	find . -name "*.a"   | xargs rm -rf
	rm -rf Makefile.rules
	rm $(NAME)

re: clean all

.PHONY: all clean fclean